﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace FRMS.Model
{
    public class JLTimeTable
    {
        public string Name { get; set; }
        public string UUID { get; set; }
        public string Session { get; set; }
        public int TimeStamp { get; set; }
        public string Sign { get; set; }
        public JLTimeTableData Data { get; set; }
    }
    public class JLTimeTableData
    {
        public List<JLTimeTableTimeTable> Table { get; set; }
    }
    public class JLTimeTableTimeTable
    {
        public int Index { get; set; }
        public string BeginTime { get; set; }
        public string EndTime { get; set; }
        public int DateEnable { get; set; }
        public string StartDate { get; set; }
        public string EndDate { get; set; }
        public int Monday { get; set; }
        public int Tuesday { get; set; }
        public int Wednesday { get; set; }
        public int Thursday { get; set; }
        public int Friday { get; set; }
        public int Saturday { get; set; }
        public int Sunday { get; set; }
    }

    public class JLTimeTableReturn
    {
        public string Name { get; set; } = string.Empty;
        public string Session { get; set; } = string.Empty;
        public int Code { get; set; }
        public string Message { get; set; }
    }

    public class JLPersonsTime
    {
        public string Name { get; set; }
        public string UUID { get; set; }
        public string Session { get; set; }
        public int TimeStamp { get; set; }
        public string Sign { get; set; }
        public JLPersonsTimeData Data { get; set; }
    }
    public class JLPersonsTimeData
    {
        public int PersonIdentity { get; set; }
        public int[] TimeTable { get; set; }
    }
}
